package com.iterator.bean.wechat.dhy;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.iterator.bean.web.pojo.tcy.Goods;
import com.iterator.bean.web.pojo.tcy.GoodsAttribute;
import com.iterator.bean.web.pojo.tcy.GoodsProduct;
import com.iterator.bean.web.pojo.tcy.GoodsSpecification;
import com.iterator.bean.web.pojo.zql.GrouponRules;
import com.iterator.bean.web.wy.issue.Issue;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: DHY
 * @Date: 2021/1/13 9:25
 * @Description:
 */
@Data
public class DetailListVO {
    private int userHasCollect;
    private CommentBean comment;
    private BrandBean brand;
    private Goods info;
    private List<SpecificationListBean> specificationList;
    private List<GrouponRules> groupon;
    private List<Issue> issue;
    private List<GoodsAttribute> attribute;
    private List<GoodsProduct> productList;

    @Data
    public static class CommentBean {
        private int count;
        private List<CommentChildren> data;
        @Data
        public static class CommentChildren{
            private Integer id;
            private String avatar;
            private String content;
            private String nickname;
            private List<String> picList;
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private Date addTime;
        }
    }

    @Data
    public static class BrandBean {
        private int id;
        private String name;
        private String desc;
        private String picUrl;
        private int sortOrder;
        private int floorPrice;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        private Date addTime;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        private Date updateTime;
        private boolean deleted;
    }



    @Data
    public static class SpecificationListBean {
        private String name;
        private List<GoodsSpecification> valueList;

    }

}

